#!/bin/sh

HOSTNAME=`hostname`
EndpintParam=
FTEC_TransactionDepth=${FTEC_TransactionDepth=1}


while test "$1" != ""
do
    case "$1" in
        -sciop) ORBNameServicePort=${ORBNameServicePort=10000}
            export NameServiceIOR=${NameServiceIOR=corbaloc:sciop:$HOSTNAME:$ORBNameServicePort/NameService}
            EndpointParam="-ORBEndpoint sciop://";;
      -d) $FTEC_TransactionDepth=$2
          shift;;
    esac
    shift
done

cd $TAO_ROOT/orbsvcs/tests/FtRtEvent
export FTEC_TransactionDepth
./consumer $EndpointParam
